package com.qf.service.imp;

import com.qf.mapper.StudentMapper;

import com.qf.mapper.StudentMapper2;
import com.qf.model.Student;
import com.qf.model.StudentVO;
import com.qf.service.StudentSerivce;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;

/**
 * --- 天道酬勤 ---
 *
 * @author GUOFUCHENG
 * @date 2025/8/12
 * @desc
 */
@Service
public class StudentServiceImpl implements StudentSerivce {
    @Autowired
    private StudentMapper studentMapper;

    @Override
    public Student findByid(int id) {
        return studentMapper.findByid(id);
    }

    @Override
    public List<Student> findAll() {
        return studentMapper.findAll();
    }

    @Override
    public List<Student> findByKeyWord(HashMap<Object, Object> map) {
        return studentMapper.findByKeyWord(map);
    }

    @Override
    public boolean add(Student student) {
        return studentMapper.add(student);
    }

    @Override
    public int edit(Student stu) {
        return studentMapper.edit(stu);
    }

    @Override
    public int delById(int id) {
        return studentMapper.delById(id);
    }

    @Override
    public int delByIds(List<Object> ids) {
        return studentMapper.delByIds(ids);
    }




}
